package com.xjh.him.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.xjh.tool.BaseDO;

import java.util.Date;

@Data
@TableName("friend_group_msg")
public class FriendGroupMsgDO extends BaseDO {
    public static final String MSG_TYPE_TEXT = "text";
    public static final String MSG_TYPE_IMAGE = "image";

    @TableId(value = "id", type = IdType.AUTO)
    private Long	id;

    /**
     * <pre>
     * 好友聊天表外键
     * </pre>
     */
    private Long	friendGroupId;

    /**
     * <pre>
     * 发送者id
     * </pre>
     */
    private Long	senderId;

    /**
     * <pre>
     * 接收者id
     * </pre>
     */
    private Long	receiverId;

    /**
     * 消息状态，未读-unread，已读-read
     */
    private String  state;

    /**
     * <pre>
     * 消息类型，文本-txt，图片-img
     * </pre>
     */
    private String	msgType;

    /**
     * <pre>
     * 消息内容
     * </pre>
     */
    private String	msgContent;

    /**
     * <pre>
     * 消息内容链接
     * </pre>
     */
    private String	msgContentUrl;

    /**
     * <pre>
     *
     * </pre>
     */
    private Date createTime;
}
